package com.atguigu.gulimall.product.constant;

import lombok.Data;

/**
 * @ClassName ProductConstant
 * @Description
 * @Author LiQianJin~
 * @Date 2024/3/30 21:54
 * @Version 1.0
 */
@Data
public class ProductConstant {

    // 常量数值
    public static final Long CONSTANT_ZERO = 0L;

    public static final String ATTR_TYPE = "base";

    public enum ProductAttrTypeEnum {
        BASE_TYPE_ENUM(1, "基本属性"), SALE_TYPE_ENUM(0, "销售属性");

        private Integer code;

        private String msg;

        ProductAttrTypeEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
